package entity;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 配置文件实体类
 */
@NoArgsConstructor
@Data
public class ConfigFile {

    private Aria2DTO aria2;
    private WebdavDTO webdav;
    private RSSHubDTO rSSHub;
    private YouGetDTO youGet;
    private PushDTO push;
    private Integer pushDelay;
    private Integer rssHubDelay;
    private Integer aria2Delay;
    private Integer webDavDelay;
    private Integer period;

    @NoArgsConstructor
    @Data
    public static class Aria2DTO {
        private String serverHost;
        private String serverPort;
        private String token;
        private String path;
        private boolean enable;
    }

    @NoArgsConstructor
    @Data
    public static class WebdavDTO {
        private String userName;
        private String passWord;
        private String baseURL;
        private boolean enable;
    }

    @NoArgsConstructor
    @Data
    public static class RSSHubDTO {
        private String uid;
        private String baseURL;
        private boolean enable;
        private String type;
        private String localVideoConfigPath;
    }

    @NoArgsConstructor
    @Data
    public static class YouGetDTO {
        private String dir;
    }

    @NoArgsConstructor
    @Data
    public static class PushDTO {
        private boolean enable;
        private String pushPlusToken;
    }
}
